<!DOCTYPE html>
<html ng-app="admin">
<head>
<link href="../favicon.ico" type="image/x-icon" rel="shortcut icon" />
<meta charset="UTF-8">
<!-- 声明页面信息与字符编码集 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 声明移动端响应式布局-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 引入Bootstrap框架样式部分-->
<link rel="stylesheet" href="../framework/bootstrap.min.css" />
<!-- 引入logo使用的网络字库 -->
<link href='//cdn.webfont.youziku.com/webfonts/nomal/21641/46833/582d7e08f629d8136ca2db97.css' rel='stylesheet' type='text/css' />
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<!-- 引入jQuery库 -->
<script type="text/javascript" src="../framework/jquery-2.0.2.js"></script>
<!-- 引入Bootstrap框架js部分 -->
<script type="text/javascript" src="../framework/bootstrap.min.js"></script>
<script type="text/javascript" src="http://v3.bootcss.com/assets/js/docs.min.js"></script>
<script type="text/javascript" src="../framework/angular.min.js"></script>
<script type="text/javascript" src="../framework/angular-route.min.js"></script>
<script type="text/javascript" src="../framework/d3.min.js" charset="utf-8"></script>
<title>国产动漫平台 控制台</title>
</head>
<body>

<!-- 导航栏 [[ -->
<div ng-controller="navController">
	<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
           <a class="navbar-brand css716dd981b5489" href="index-index-show" style="color:grey; font-size:28px;">国产动漫平台 <small style="font-size:20px;">控制台</small></a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#/{{active}}" data-toggle="modal" data-target="#adminMsgModel" ng-click="navClick()">管理员信息</a></li>
            <li><a href="#/{{active}}" data-toggle="modal" data-target="#adminWork" ng-click="navClick()">工作任务</a></li>
            <li><a href="/acgfan/admin-logout">退出</a></li>
          </ul>
        </div>
      </div>
    </nav>
</div>
<!-- 导航栏 ]] -->

<!-- 侧边功能栏 [[ -->
<div class="container-fluid" ng-init="active='baseShow'">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
<!--             <li ng-class="{active:active=='baseShow'}"><a href="#/" ng-click="active='baseShow'">项目基本信息概述</a></li>-->
            <li ng-class="{active:active=='userConfig'}"><a href="#/userConfig" ng-click="active='userConfig'">用户相关信息管理</a></li>
            <li ng-class="{active:active=='baseConfig'}"><a href="#/baseConfig" ng-click="active='baseConfig'">项目基本信息配置</a></li>
          </ul>
          <ul class="nav nav-sidebar">
            <li ng-class="{active:active=='videoConfig'}"><a href="#/videoConfig" ng-click="active='videoConfig'">视频相关管理</a></li>
            <li ng-class="{active:active=='indexConfig'}"><a href="#/indexConfig" ng-click="active='indexConfig'">展示轮播图相关管理</a></li>
            <li ng-class="{active:active=='commentConfig'}"><a href="#/commentConfig" ng-click="active='commentConfig'">视频评论相关管理</a></li>
            <li ng-class="{active:active=='danmuConfig'}"><a href="#/danmuConfig" ng-click="active='danmuConfig'">视频弹幕相关管理</a></li>
          </ul>
          <ul class="nav nav-sidebar">
            <li ng-class="{active:active=='shopConfig'}"><a href="#/shopConfig" ng-click="active='shopConfig'">周边商城相关管理</a></li>
            <li ng-class="{active:active=='gameConfig'}"><a href="#/gameConfig" ng-click="active='gameConfig'">游戏相关管理</a></li>
            <li ng-class="{active:active=='paletteConfig'}"><a href="#/paletteConfig" ng-click="active='paletteConfig'">画板相关管理</a></li>
          </ul>
          <ul class="nav nav-sidebar">
            <li ng-class="{active:active=='superConfig'}"><a href="#/superConfig" ng-click="active='superConfig'"><i class="glyphicon glyphicon-briefcase"></i> 顶级管理者入口</a></li>
          </ul>
        </div>

<!-- 侧边功能栏 ]] -->

<!-- 模态框 [[ -->
	<!-- #管理员信息模态框 -->
	<div ng-controller="navController" class="modal fade bs-example-modal-sm" id="adminMsgModel" tabindex="-1" role="dialog" aria-labelledby="adminMsgModel" aria-hidden="true">
	  <div class="modal-dialog modal-sm">
	    <div class="modal-content">
	      <div class="modal-header">
	        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
	        <h4 class="modal-title" id="">管理员信息</h4>
	      </div>
	      <div class="modal-body">
	        <p class=""><strong>工号 : </strong>{{adminId}}</p>
	        <p class=""><strong>姓名 : </strong>{{adminName}}</p>
	        <p class=""><strong>角色 : </strong>{{adminRole}}</p>
	      </div>
	      <div class="modal-footer">
	        <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>
	      </div>
	    </div>
	  </div>
	</div>
	<!-- #工作任务模态框 -->
	<div ng-controller="navController" class="modal fade" id="adminWork" tabindex="-1" role="dialog" aria-labelledby="adminWork" aria-hidden="true">
	  <div class="modal-dialog">
	    <div class="modal-content">
	      <div class="modal-header">
	        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
	        <h4 class="modal-title" id="">工作任务</h4>
	      </div>
	      <div class="modal-body">
	        <p>{{adminWork}}</p>
	      </div>
	      <div class="modal-footer">
	        <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>
	      </div>
	    </div>
	  </div>
	</div>
<!-- 模态框 ]] -->

<!-- 主功能区 [[ -->
     <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" ng-view>
     </div>
<!-- 主功能区 ]] -->

<script type="text/javascript">
	//声明模块
	var app = angular.module("admin", ["ngRoute"]);
	//判断当前用户是否登录,如果未登录则重定向会首页
	// app.run(["$window", "$http", "$location", function($window, $http, $location) {
	// 	$location.url("/");  //将加载页面的路由设置为根目录
	// 	//获取登录状态
	// 	$http({
	// 		method : "get",
	// 		url : "admin-islogin-ajax",
	// 		params : {time : new Date()}
	// 	}).success(function(data) {
	// 		if (data == 0) {
	// 			$window.alert("您尚未登录,无法进入控制台!");
	// 			$window.location.href = "/acgfan/index-index-show";
	// 		}
	// 	});
	// }])
</script>
<!-- 加载各模块控制器 -->
<script type="text/javascript" src="controller.js"></script>
<!-- 配置前端路由-->
<script type="text/javascript" src="route.js"></script>

</body>
</html>
